using ZFramework;

namespace PaintAWorld
{
    public class ItemProtoDB : Registry<string, ItemProto>
    {
        private static ItemProtoDB _instance = null;
        public static ItemProtoDB Instance => _instance ??= new();

        public uint? GetMaxstackSize(int itemId) => GetEntry(itemId)?.MaxStackSize ?? null;
    }
}